<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="./Public/Home/org/tijiaodingdan.css"/>
		<script type="text/javascript" src="./Public/city/area.js"></script>
		<!--载入hdjs-->
	    <link rel="stylesheet" href="Public/hdjs/hdjs.css">
	    <script src="Public/jquery-1.8.2.min.js"></script>
	    <script src="Public/hdjs/hdjs.min.js"></script>
		 <script type="text/javascript">
							$(function(){
								//初始化方法
								area.init('a');
								//修改的时候默认被选中效果
								// area.selected('黑龙江','哈尔滨','道里区');
							})
						</script>
	</head>
	<body>
		<!--公共顶部-->
		<!--头部-->
		<div id="top">			
			<ul class="top_long">
				<a href=""><div class="qczj"><img src="./Public/Home/imgs/logo-auto-92438.png"/></div></a>			
				<a href="http://localhost/car_shop/index.php?m=Home&c=Dingdan&a=index"><li myOrder>我的订单</li></a>	
				<span class="shu">|</span>
								<a href="http://localhost/car_shop/index.php?m=Home&c=Member&a=out"><li class="login">退出 </li></a>
					
				<a href="http://localhost/car_shop/index.php?m=Home&c=Member&a=index"><li class="login">admin </li></a>


							</ul>			
		</div>
		<!--大盒子-->
		<div id="box">
			<!--logo-->
			<div id="search">
					<a href="<?php echo U('Index/index')?>"> <img class="tupian" src="./Public/Home/imgs/header-logo-mall-363de.png"/></a>
														
			</div>
			<!--logo-->
			<div class="head">
				<h2>填写并核对订单信息</h2>
				<div class="buzhou">
					<span class="title">购买仅需3步！</span>
					<ul>
                        <li class="current">1.填写并核对订单信息<i class="order-nav-step-rightarrow"></i></li>
                        <li><i class="order-nav-step-leftarrow"></i>2.选择支付方式<i class="order-nav-step-rightarrow"></i></li>
                        <li><i class="order-nav-step-leftarrow"></i>3.购买成功</li>
                    </ul>
				</div>
				
			</div>
            <form onsubmit="return hd_submit(this,'<?php echo U('Dingdan/add')?>','<?php echo U('Dingdan/pay')?>')">
			
				<div class="order-box">
                    <h3 class="order-title">购车人信息</h3>

                    <div class="order-form">
                    	
                        <dl class="fn-clear">
                            <dt>购车人：</dt>
                            <dd>
                                <input placeholder="请填写姓名" type="text" class="default"  name="name" id="name">
                                <span class="order-form-tip" id="namemsg"><font color="red">该姓名需要与最终购车发票上的姓名一致</font></span></dd>
                        </dl>
                        <dl class="fn-clear">
                            <dt>手机号码：</dt>
                            <dd>
                                <input placeholder="请填写手机" type="text" class="default"  name="mobile" id="mobile">
                                <span class="order-form-tip" id="mobilemsg"><font color="red">手机号用于接收购车凭证，请确保准确</font></span>
                            </dd>
                        </dl>                                        
                        <dl class="fn-clear order-form-text">
                            <dt>提车城市：</dt>
                            <dd>
                            	<select name="address[]" id="a1">
								</select>
								<select name="address[]" id="a2">									
								</select>
								<select name="address[]" id="a3">
								</select>
                                <!--<span>北京</span>-->
                            </dd>
                        </dl>  


                    </div>
                </div>
                <div class="fangshi">
                	<h3>提车方式</h3>
                	<div class="ddtc">
                		<span>到店提车</span>
                	</div>
                </div>               
                <div class="spxx">
                	<h3>商品信息</h3>
                	<div class="spxx-xin">
                		<table border="" cellspacing="" cellpadding="">
                			<tr>
                				<th>商品图片</th>
                				<th class="mingcheng">商品名称</th>
                				<th>市场价</th>
                				<th>优惠金额</th>
                				<th>商城价</th>
                			</tr>

                			<?php foreach ($data as $v){?>
                			<tr>
                				<td>
                					<img width="168" height="126" src="<?php echo $v['options']['listgroup']?>"/>
                				</td>
                				<td>
                					<p><?php echo $v['name']?></p>
                					<?php foreach ($v['options']['attribute'] as $value){?>
                					<span><?php echo $value?></span>
                					<?php }?>
                				</td>
                				<td>￥<?php echo $v['options']['market']?>万</td>
                				<td>￥<?php echo $v['options']['market']-$v['price']?>万</td>
                				<td>￥<?php echo $v['price']?>万</td>
                			</tr>
                			<?php }?>
                			
                		</table>
                		
                	</div>
                </div>
                <div class="spze">
                	<div class="money">
                		<p>商品总额：￥<?php echo $_SESSION['cart']['total']?>万</p>
                		<p>订金：￥<?php echo $_SESSION['cart']['total']/10?>万</p>
                		<p>尾款：￥<?php echo $_SESSION['cart']['total']-$_SESSION['cart']['total']/10?>万</p>
                	</div>
                </div>
                <div class="dibu">
                	<div class="dibu_top">
                		本次应付金额<b id="price">￥<?php echo $_SESSION['cart']['total']/10?>万</b>
                	</div>
                	<div class="xiabu">
                		<span class=""><i class=""></i>不提车随时退款</span>
                		<input style="width: 180px; font-size: 20px; color: white; height: 50px; background: #DC381C; border: none; cursor: pointer;" type="submit" class="ibut" value="提交订单" id="SubmitLogin">
                		<input type="hidden" name="uid" id="" value="<?php echo $_SESSION['uid']?>" />
                	</div>
                	
                </div>
            </form>               
                
                
		
		</div>	
		<!--公共底部-->
		<!--底部-->
		<div id="footer">
			<div id="footer1">
				<div class="footer_logo">
					<img src="./Public/Home/imgs/logo-footer.png"/>
				</div>							
			</div>			
		</div>
		<div id="banquan">
			<span>© 2004-2016 www.autohome.com.cn All Rights Reserved. 汽车之家 版权所有</span>
		</div>
			